<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: fzy-2
  Date: 2021/4/13
  Time: 16:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath(); %>
<html>
<head>
    <meta charset="utf-8">
    <title>上机考试系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- le styles -->
    <link href="<%=path%>/css/bootstrap.css" rel="stylesheet">
    <link href="<%=path%>/css/exam.css" rel="stylesheet">
    <style>
        body {
            padding-top: 60px;
            /* 60px to make the container go all the way to the bottom of the topbar */
        }
    </style>
    <link href="<%=path%>/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- le html5 shim, for ie6-8 support of html5 elements -->
    <!--[if lt ie 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<body>

<%@ include file="/WEB-INF/pages/Admin/admin_header.jsp"%>

<div class="container">

    <h1>
        <img src="<%=path%>/img/exam-admin.png"  alt=""/> 系统管理
    </h1>


    <c:if test="${adminid == 0}">
        <div class="exam-alert">没有设置管理员帐号，默认管理员帐号存在安全风险，请尽快处理！</div>
    </c:if>
    <br />



    <form class="exam-form form-horizontal" action=""
          method="">
        <h4>修改系统配置</h4>
        <div class="control-group">
            <label class="control-label" for="interval">后台任务间隔时间</label>
            <div class="controls">
                <input type="text" id="interval" name="interval" value="30" />
                <p class="help-block">指定扫描考试信息的间隔时间，单位为 分钟。</p>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="pagesize">分页查询记录条数</label>
            <div class="controls">
                <input type="text" id="pagesize" name="pagesize" value="30" />
                <p class="help-block">指定分页查询时每页显示记录数的默认值（查询页面中可以更改）。</p>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="timegap">手动开启考试时间阈值</label>
            <div class="controls">
                <input type="text" id="timegap" name="timegap" value="15" />
                <p class="help-block">指定手工开启考试时允许的最大提前量，单位为分钟</p>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="minfilesize">上传文件字节数下限</label>
            <div class="controls">
                <input type="text" id="minfilesize" name="minfilesize" value="512" />
                <p class="help-block">指定上传文件的长度下限（字节），低于此值发出警告</p>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="maxfilesize">上传文件字节数上限</label>
            <div class="controls">
                <input type="text" id="maxfilesize" name="maxfilesize" value="131072" />
                <p class="help-block">指定上传文件的长度上限（字节），高于此值发出警告</p>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <label class="checkbox">
                    <input type="checkbox" id="candelete" name="candelete" value="true"
                           checked /> 教师可以清理和删除考试
                    <!-- to make struts2 get unchecked input -->
                    <input type="hidden" id="__checkbox_candelete" name="__checkbox_candelete" value="true" />
                </label>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <input type="submit" name="action" class="btn btn-primary" value="修改" />
            </div>
        </div>
    </form>


</div>
<!-- /container -->
<!-- placed at the end of the document so the pages load faster -->
<script src="<%=path%>/js/jquery.min.js"></script>
<script src="<%=path%>/js/bootstrap.min.js"></script>
</body>
</html>
